package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.DriverStationLCD;
import edu.wpi.first.wpilibj.Timer;

public class DoUpdateLCD extends CommandBase {

    //Declares timer for LCD
    Timer MyTimer = new Timer();

    public DoUpdateLCD() {
     }

    protected void initialize() {
        MyTimer.reset();
        MyTimer.start();
    }

    protected void execute() {
        //Sets timer for LCD to frequently update output
        if (MyTimer.get() >= 0.5){
            DriverStationLCD.getInstance().updateLCD();
            MyTimer.stop();
            MyTimer.reset();
            MyTimer.start();
        }
    }

    protected boolean isFinished() {
        //Same as DoMoveFeeder
        return false;
    }

    protected void end() {
    }

    protected void interrupted() {
    }
}